﻿using System;
using System.Collections.Generic;
using System.Text;
using IceDog.DNL.CSharp.Model;

namespace IceDog.DNL.CSharp.Grammar.ClassInstantiation
{
    public class CityManager
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="city"></param>
        /// <returns></returns>
        public City GetCity(City city)
        {
            return city;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="TCity"></typeparam>
        /// <returns></returns>
        public TCity GetCity<TCity>() where TCity:new()
        {
            return new TCity();
        }
    }
}
